import request from '@/utils/request'

export const reqGetArtCateList = () => {
  return request.get('/my/cate/list')
}
// 添加文章
export const addArticleList = (obj) => {
  return request.post('/my/cate/add', obj)
}
// 删除文章
export const delArticleList = (id) => {
  return request.delete('/my/cate/del', {
    params: {
      id
    }
  })
}
// 数据回显
export const getArticleDetail = (id) => {
  return request.get('/my/cate/info', {
    params: {
      id
    }
  })
}
// 修改数据
export const updateArticle = (obj) => {
  return request.put('/my/cate/info', obj)
}
